//
//  ST_PairsCenterPeculiarityImageView.swift
//  btvideo
//
//  Created by mac on 2020/3/21.
//  Copyright © 2020 JarvanZhang. All rights reserved.
//

import UIKit
import SnapKit
import SwifterSwift

class ST_PairsCenterPeculiarityImageView: UIImageView {
    
    convenience init(){
        self.init(frame: CGRect.zero)
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.clipsToBounds = true
        
        self.addSubview(cover_mask_view)
        cover_mask_view.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
        cover_mask_view.addSubview(mask_label)
        mask_label.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    fileprivate lazy var cover_mask_view:UIView = {
        let control = UIView()
        control.backgroundColor = UIColor.init(white: 0, alpha: 0.4)
        control.isHidden = true
//        control.cornerRadius = 20c
        return control
    }()
    
    fileprivate lazy var mask_label:UILabel = {
       let control = UILabel()
        control.text = "审核中.."
        control.font = UIFont.systemFont(ofSize: 14, weight: UIFont.Weight.semibold)
        control.textColor = .white
        control.textAlignment = .center
        return control
    }()
    
    /**
     审核中
     */
    var isCheck = false{
        didSet{
//            功能 #3913
//            cover_mask_view.isHidden = !isCheck
        }
    }
}
